/**
 * 路由配置
 */
export default [
  {
    path: '/',
    name: 'main',
    component: () => import('@/views/Main.vue'),
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/Home.vue')
      },
      {
        path: '/doc',
        name: 'doc',
        component: () => import('@/views/Doc.vue')
      },
      {
        path: '/about',
        name: 'about',
        component: () => import('@/views/About.vue')
      },
      {
        path: '/test1',
        name: 'test1',
        component: () => import('@/views/test/Page1.vue')
      },
      {
        path: '/test2',
        name: 'test2',
        component: () => import('@/views/test/Page2.vue')
      },
      {
        path: '/test3',
        name: 'test3',
        component: () => import('@/views/test/Page3.vue')
      },
    ]
  },
  {
    path: '*',
    name: '404',
    component: () => import('@/views/error/404.vue')
  }
]
